<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Role extends Model
{
    //
    protected $table = 'dg_role';
    protected $fillable = ['name'];

    public function access()
    {
        return $this->hasMany('App\Models\RoleAccess','role_id','id');
    }
    public function menus()
    {
        return $this->hasMany('App\Models\RoleMenu','role_id','id');
    }
}
